<%@ page contentType="text/html; charset=UTF-8"%>
<%@include file="/html/portlet/chart/datasourcecfg/init.jsp"%>

<%
	String mvcPath = ParamUtil.getString(request, "mvcPath");

	ResultRow row = (ResultRow) request
			.getAttribute(WebKeys.SEARCH_CONTAINER_RESULT_ROW);

	DataSourceCfg dsc = (DataSourceCfg) row.getObject();
%>

<liferay-ui:icon-menu>
		<portlet:renderURL var="editDataSourceCfgURL">
			<portlet:param name="dataSourceId"
				value="<%=String.valueOf(dsc.getDataSourceId()) %>" />
			<portlet:param name="mvcPath"
				value="/html/portlet/chart/datasourcecfg/edit_dscfg.jsp" />
			<portlet:param name="redirect" value="<%= currentURL %>" />
		</portlet:renderURL>
	
		<liferay-ui:icon image="edit" message="edit"
			url="<%=editDataSourceCfgURL.toString() %>" />

		<portlet:actionURL var="testDataSourceCdfURl" name="testDataSourceCfg" >
			<portlet:param name="dataSourceId"
				value="<%= String.valueOf(dsc.getDataSourceId()) %>" />
		</portlet:actionURL>
		<liferay-ui:icon image="liferay_sync" message="chart.dsconfig.test"
			url="<%=testDataSourceCdfURl.toString() %>" />
		
		<portlet:actionURL name="deleteDataSourceCfg" var="deleteDataSourceCfgURL">
			<portlet:param name="dataSourceId"
				value="<%= String.valueOf(dsc.getDataSourceId()) %>" />
		</portlet:actionURL>

		<liferay-ui:icon-delete url="<%=deleteDataSourceCfgURL.toString() %>" />
</liferay-ui:icon-menu>